import DataTable from './src/DataTable.vue';
import type { PaginationInfo } from 'naive-ui';

export function getDefaultPagination() {
  return {
    page: 1,
    pageSize: 20,
    itemCount: 0,
    pageSizes: [10, 20, 30, 40, 50],
    showSizePicker: true,
    prefix({ itemCount }: PaginationInfo) {
      return `共${itemCount}条`;
    }
  };
}

export default DataTable;
